
#ifndef BICE_H
#define BICE_H

#include "Core.h"
#include "Descriptor.h"

#include <iostream>
#include <vector>
#include <utility>
using namespace std;

class BiCE
{
	public:
		BiCE(int height,int width,const unsigned char *data);
		inline int pos(int i,int j){ return i*width + j;}
		vector< pair<Position,Sketch> > postion_sketch_pairs;
		friend ostream & operator<<(ostream & out, const BiCE &b) {
			for(int i=0;i< b.postion_sketch_pairs.size();i++ )
				out << b.postion_sketch_pairs[i].first << b.postion_sketch_pairs[i].second << endl;
			return out;
		}
		int height, width;
};

#endif
